Imaging apparatus, system having imaging apparatus and printing apparatus, and control method therefor

ABSTRACT

An imaging apparatus capable of outputting a sensed image to a printing apparatus determines the type of PD printer apparatus connected via an interface, and selects the type of image data to be output to the PD printer apparatus on the basis of the determination result. The imaging apparatus directly transmits a JPEG code for a predetermined PD printer apparatus, or decodes and transmits the JPEG code for another printer apparatus.

FIELD OF THE INVENTION

The present invention relates to an imaging apparatus such as a digitalcamera, a system having the imaging apparatus and a printing apparatus,and a control method therefor.

BACKGROUND OF THE INVENTION

In recent years, digital cameras (imaging apparatuses, imaging device orimage sensing apparatus) capable of photographing an image by a simpleoperation and converting the image into digital image data have widelybeen used. To print an image photographed by this camera and use theprint as a photograph, the photographed digital image data istemporarily input from the digital camera to a PC (computer), andundergoes image processing by the PC. The processed data is then outputfrom the PC to a color printer, which prints the data.

To the contrary, there have been developed color print systems capableof directly transferring digital image data from a digital camera to acolor printer and printing the data without the mediacy of any PC, andso-called photo-direct (PD) printers capable of directly mounting in acolor printer a memory card which is mounted in a digital camera andstores a sensed image, and printing the photographed image stored in thememory card.

A digital camera generally stores image data encoded by JPEG or thelike. In particular, to directly transfer image data from a digitalcamera to a printer and print the image data, JPEG-encoded data istemporarily decoded in printing. Then, the data is transferred to theprinter and printed. Recently, printer apparatuses with a decodingfunction for JPEG codes and a function for color conversion and the likehave been developed. To output print data to such a printer apparatus,the function of the connected printer apparatus must be confirmed toswitch the format of output image data.

Digital cameras require decreases in size and weight. However, aplurality of keys for various operations in printing make the cameraitself bulky, which conflicts with the user's needs.

SUMMARY OF THE INVENTION

The present invention has been made in consideration of the abovesituation, and has as its object to provide an imaging apparatus which,when connected to a printing apparatus, determines the type of printingapparatus and outputs corresponding image data, a system having theimaging apparatus and printing apparatus, and a control method therefor.

It is another object of the present invention to provide an imagingapparatus capable of, when connection to a printing apparatus isdetected, automatically adding a user interface menu for outputtingimage data to the printing apparatus, a system having the imagingapparatus and printing apparatus, and a control method therefor.

Other features and advantages of the present invention will be apparentfrom the following descriptions taken in conjunction with theaccompanying drawings, in which like reference characters designate thesame or similar parts throughout the figures thereof.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are incorporated in and constitute apart of the specification, illustrate embodiments of the invention and,together with the descriptions, serve to explain the principle of theinvention.

FIG. 1 depicts a schematic perspective view showing a photo-directprinter apparatus according to an embodiment of the present invention;

FIG. 2 depicts a schematic view showing the operation panel of thephoto-direct printer apparatus according to the embodiment;

FIG. 3 is a block diagram showing the arrangement of the main partconcerning control of the photo-direct printer apparatus according tothe embodiment;

FIG. 4 is a block diagram showing the arrangement of the ASIC of thephoto-direct printer apparatus according to the embodiment;

FIG. 5 depicts a view for explaining connection between the photo-directprinter apparatus and a digital camera according to the embodiment;

FIG. 6 depicts a view showing a display example on the display of theoperation panel when the photo-direct printer apparatus and digitalcamera according to the embodiment are connected;

FIG. 7 is a flow chart for explaining an initial state when the PDprinter apparatus and digital camera according to the embodiment areconnected;

FIG. 8 depicts a signal sequence chart for explaining exchange ofsignals in initial operation when the PD printer apparatus and digitalcamera according to the embodiment are connected;

FIG. 9 depicts a schematic view showing the appearance of the operationunit of the digital camera according to the embodiment;

FIG. 10 is a block diagram showing the arrangement of the digital cameraaccording to the embodiment;

FIG. 11 is a flow chart for explaining an operation when print operationstarts in the digital camera while the PD printer apparatus and digitalcamera according to the embodiment are connected;

FIG. 12 depicts a signal sequence chart for explaining exchange ofsignals when the PD printer apparatus and digital camera according tothe embodiment are connected and perform normal image printing;

FIG. 13 is a flow chart for explaining coefficient processing of thenumber of prints in the digital camera according to the embodiment;

FIG. 14 is a flow chart for explaining print processing operationexecuted in the printer apparatus while the PD printer apparatus anddigital camera according to the embodiment are connected;

FIG. 15 is a flow chart for explaining normal print operation executedin the printer apparatus while the PD printer apparatus and digitalcamera according to the embodiment are connected;

FIG. 16 depicts a signal sequence chart for explaining exchange ofsignals in trimming and/or date printing when the PD printer apparatusand digital camera according to the embodiment are connected and performimage printing;

FIG. 17 is a flow chart for explaining index print operation executed inthe printer apparatus while the PD printer apparatus and digital cameraaccording to the embodiment are connected;

FIG. 18 depicts a signal sequence chart for explaining exchange ofsignals in index printing when the PD printer apparatus and digitalcamera according to the embodiment are connected and perform imageprinting;

FIG. 19 is a flow chart for explaining layout print operation executedin the printer apparatus while the PD printer apparatus and digitalcamera according to the embodiment are connected;

FIG. 20 is a flow chart for explaining an operation when an error occursin the printer apparatus during print processing in the printerapparatus while the PD printer apparatus and digital camera according tothe embodiment are connected;

FIG. 21 depicts a signal sequence chart for explaining exchange ofsignals when an error occurs in the printer apparatus during printprocessing in the printer apparatus while the PD printer apparatus anddigital camera according to the embodiment are connected and performimage printing;

FIG. 22 depicts a signal sequence chart for explaining exchange ofsignals when the camera issues forced termination of printing duringprint processing in the printer apparatus while the PD printer apparatusand digital camera according to the embodiment are connected and performimage printing; and

FIG. 23 depicts a signal sequence chart for explaining exchange ofsignals when an error occurs in the printer apparatus during printprocessing in the printer apparatus and the camera issues forced restartof printing with respect to the error while the PD printer apparatus anddigital camera according to the embodiment are connected and performimage printing.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

A preferred embodiment of the present invention will be described indetail below with reference to the accompanying drawings.

FIG. 1 is a schematic perspective view showing a photo-direct printer1000 according to the embodiment of the present invention. Thephoto-direct printer 1000 has a general PC printer function of receivingdata from a host computer (PC) and printing the data, and a function ofdirectly reading and printing image data stored in a storage medium suchas a memory card, or receiving image data from a digital cameraconnected to the printer apparatus and printing the data.

In FIG. 1, the main body which defines the casing of the photo-directprinter 1000 according to this embodiment has casing members: a lowercase 1001, upper case 1002, access cover 1003, and discharge tray 1004.The lower case 1001 forms almost the lower half of the printer 1000,whereas the upper case 1002 forms almost the upper half of the mainbody. A combination of these cases forms a hollow structure with astorage space where each mechanism (to be described later) isaccommodated. The upper and front surfaces have openings. The dischargetray 1004 is rotatably held at one end by the lower case 1001, and theopening in the front surface of the lower case 1001 is opened/closed byrotating the discharge tray 1004. To execute a print operation, thedischarge tray 1004 is rotated toward the front side to open theopening. Print sheets can be discharged from the opening, and thedischarged print sheets can be sequentially stacked. The discharge tray1004 houses two auxiliary trays 1004 a and 1004 b. These trays areselectively pulled out to enlarge/reduce the paper support area in threestages, as needed.

The access cover 1003 is rotatably held at one end by the upper case1002 so as to open/close the opening formed in the upper surface.Opening the access cover 1003 enables exchanging a print head cartridge(not shown), ink tank (not shown), or the like accommodated in the mainbody. Although not shown, a projection formed on the back surface of theaccess cover 1003 rotates a cover opening/closing lever when the accesscover 1003 is opened/closed. The lever rotation position is detected bya microswitch or the like, thereby detecting the open/closed state ofthe access cover 1003.

A power switch 1005 is provided with the upper surface of the upper case1002. An operation panel 1010 having a liquid crystal display 1006,various key switches, and the like is arranged on the right side of theupper case 1002. The structure of the operation panel 1010 will bedescribed in detail with reference to FIG. 2. Reference numeral 1007denotes an automatic feeder which automatically feeds print sheets intothe apparatus main body; numeral 1008 denotes a paper interval selectionlever for adjusting the interval between the print head and the printsheet; and numeral 1009 denotes a card slot into which an adaptercapable of mounting a memory card is inserted. Image data stored in amemory card can be directly received and printed via the adapter. Thememory card (PC) includes, e.g., a compact flash memory™, smart media,or memory stick. Reference numeral 1011 denotes a viewer (liquid crystaldisplay) which is detachable from the apparatus main body and is used todisplay an image of one frame, an index image, and the like when imagesstored in the PC card are searched for an image to be printed; andnumeral 1012 denotes a terminal (input terminal for inputting imagedata) for connecting a digital camera (to be described later). A USB busconnector 1013 in FIG. 3 for connecting a personal computer (PC) isprovided with the back side of the apparatus main body.

FIG. 2 is a schematic view showing the operation panel 1010 according tothis embodiment.

In FIG. 2, the liquid crystal display 1006 displays menu items forvarious settings of data on items printed on the right and left of thedisplay 1006. The displayed items are the first photograph number of aprint range, a designated frame number (start/-designate), the lastphotograph number of the print range (end), the number of prints (numberof copies), the type of paper (print sheet) used for printing (papertype), setting of the number of photographs to be printed on one sheet(layout), designation of the print quality (quality), designationwhether to print a photographing date (date printing), designationwhether to correct and print a photograph (image correction), anddisplay of the number of sheets necessary for printing (number ofsheets). These items are selected or designated with cursor keys 2001.Reference numeral 2002 denotes a mode key which allows switching thetype of printing (index printing, printing of all frames, printing ofone frame, or the like) every time the key is pressed; numeral 2004denotes a maintenance key for performing printer maintenance such ascleaning of the printer head; numeral 2005 denotes a print start keywhich is pressed to designate the start of printing or establishmaintenance setting; and numeral 2006 denotes a stop key which ispressed to stop printing or designate to stop a maintenance processing.

The arrangement of the main part concerning control of the photo-directprinter apparatus according to this embodiment will be explained withreference to FIG. 3. In FIG. 3, the same reference numerals as in theforegoing drawings denote the same parts, and a description thereof willbe omitted.

In FIG. 3, reference numeral 3000 denotes a controller (control board);numeral 3001 denotes an ASIC (application specific LSI) whoseaffangement will be described in detail below with reference to theblock diagram of FIG. 4; numeral 3002 denotes a DSP (Digital SignalProcessor) which incorporates a CPU and performs various controlprocesses (to be described later), and image processes such asconversion from an RGB signal (RGB signal indicates three primary colorsignals for display and is called as a luminance signal) to a CMYKsignal (CMY signal indicates three primary color signal for printing anda CMYK signal including a black signal is called as a density signal),scaling, gamma conversion, and error diffusion; numeral 3003 denotes amemory having a program memory 3003 a which stores the control programof the CPU of the DSP 3002, a RAM area which stores variables and thelike in executing a program, and a memory area functioning as a workmemory which stores image data and various data; numeral 3004 denotes aprinter engine which is an ink-jet print type printer engine forprinting a color image by using a plurality of color inks in thisembodiment; numeral 3005 denotes a connector serving as a port forconnecting a digital camera 3012; numeral 3006 denotes a connector forconnecting the viewer 1011; and numeral 3008 denotes a USB bus hub whichtransmits data from a PC 3010 and outputs the data to the printer engine3004 via a USB bus 3021 when the printer 1000 performs printing based onimage data from the PC 3010. The connected PC 3010 can directly exchangedata and signals with the printer engine 3004 and execute printing(functions as a general PC printer). Reference numeral 3009 denotes apower connector which receives from a power supply 3013 a DC voltageconverted from a commercial AC voltage. The PC 3010 is a generalpersonal computer. Reference numeral 3011 denotes a memory card (PCcard) described above; and numeral 3012 denotes the digital camera.

Signal exchange between the controller 3000 and the printer engine 3004is performed via the USB bus 3021 or an IEEE 1284 bus 3022.

FIG. 4 is a block diagram mainly showing the arrangement of the ASIC3001. Also in FIG. 4, the same reference numerals as in the foregoingdrawings denote the same parts, and a description thereof will beomitted.

Reference numeral 4001 denotes a PC card interface which reads imagedata stored in the mounted PC card 3011 or writes data in the PC card3011; and numeral 4002 denotes an IEEE 1284 interface which exchangesdata with the printer engine 3004. The IEEE 1284 interface is a bus usedto print image data stored in the digital camera 3012 or PC card 3011.Reference numeral 4003 denotes a USB interface which exchanges data withthe PC 3010; numeral 4004 denotes a USB host interface which exchangesdata with the digital camera 3012; numeral 4005 denotes an operationpanel interface which receives various operation signals from theoperation panel 1010 or outputs display data to the display 1006;numeral 4006 denotes a viewer interface which controls display of imagedata on the viewer 1011; numeral 4007 denotes an interface whichcontrols an interface between various switches, an LED 4009, and thelike; numeral 4008 denotes a CPU interface which controls data exchangebetween these interfaces and the DSP 3002; and numeral 4010 denotes aninternal bus (ASIC bus) which is connected to these units.

The outline of the operation based on the above arrangement will bedescribed.

<General PC Printer Mode>

The general PC printer mode is a print mode in which an image is printedon the basis of print data from the PC 3010.

In this PC printer mode, when data from the PC 3010 is input via the USBbus connector 1013, the data is directly sent to the printer engine 3004via the USB bus hub 3008 and USB bus 3021 (FIG. 3). Printing is executedbased on the data from the PC 3010.

<Direct Print Mode from PC Card>

When the PC card 3011 is mounted/dismounted in/from the card slot 1009,an interrupt occurs, and the DSP 3002 can detect mounting/dismounting(removal) of the PC card 3011. If the PC card 3011 is mounted, imagedata which is compressed (e.g., JPEG-compressed) and stored in the PCcard 3011 is read out and stored in the memory 3003. The compressedimage data is decompressed and stored in the memory 3003 again. Ifprinting of the stored image data is designated on the operation panel1010, conversion from an RGB signal to a YMCK signal, gamma correction,error diffusion, and the like are executed to convert the data intoprint data printable by the printer engine 3004. The resultant data isoutput to the printer engine 3004 via the IEEE 1284 interface 4002 toprint the data.

<Direct Print Mode from Camera>

FIG. 5 is a view for explaining connection between the photo-directprinter 1000 and the digital camera 3012 according to this embodiment.

In FIG. 5, a cable 5000 comprises a connector 5001 connected to theconnector 1012 of the printer 1000, and a connector 5002 connected to aconnector 5003 of the digital camera 3012. The digital camera 3012 canoutput via the connector 5003 image data saved in an internal memory.The digital camera 3012 can adopt various arrangements such as oneincorporating a memory as a storage means and one having a slot formounting a detachable memory. By connecting the printer 1000 and digitalcamera 3012 via the cable 5000 shown in FIG. 5, image data from thedigital camera 3012 can be directly printed by the printer 1000.

FIG. 6 depicts a view showing the display state of the display 1006 ofthe operation panel 1010 when the digital camera 3012 is connected tothe printer 1000. In this case, the display 1006 displays only a cameramark 6000. The display and operation on the operation panel 1010 areinvalidated, and image display on the viewer 1011 is also invalidated.As subsequent operation, only key operation on the digital camera 3012and image display on the display (not shown) of the digital camera 3012are valid. The user can designate printing by using the digital camera3012.

An operation when printing is done by connecting the PD printer 1000 anddigital camera 3012 according to the embodiment will be explained indetail.

FIG. 7 is a flow chart showing connection processing to the PD printer1000 in the digital camera 3012 according to the embodiment. FIG. 8depicts a view for explaining signal protocols between the digitalcamera 3012 and the PD printer 1000 in connection.

If it is detected in step S1 that the digital camera 3012 has beenconnected to the PD printer 1000 via the USB bus cable 5000, the flowadvances to step S2 to turn on the camera 3012. Whether the USB bus hasbeen connected is detected based on that the voltage level of a givensignal on the USB bus reaches a predetermined voltage level. The processthen advances to step S3 and a Wake-up sequence is executed in thecamera 3012, in response to a Wake-up request 800 (FIG. 8) from the PDprinter 1000. As shown by procedures in FIG. 8, when the digital camera3012 receives commands such as a GetDeviceIDData command,SetNegotiationData, and Query from the PD printer 1000, the camera 3012acquires information necessary to exchange data and an ID representingthe type of the digital camera 3012.

The process advances to step S4 and the type of the connected PD printer1000 is set to a predetermined type (default value: Printertype=0). Theprocess proceeds to step S5 and it is checked whether a printer ID(PrinterID) from the PD printer 1000 has been received. If the ID of thePD printer 1000 is received by SetPrinterID 801 in FIG. 8, the processproceeds to step S6 and the received PrinterID is stored into a memory(not shown) of the camera 3012. Accordingly, the type of the connectedPD printer 1000 is determined. After that, the digital camera 3012receives a BatteryCheck command from the PD printer 1000, and sends backa response to this command. In step S7, it is checked whether a command(PrinterModeInit) 802 (FIG. 8) representing the end of printer modesetting processing is received from the PD printer 1000. If NO in stepS7, the process proceeds to step S5 and the above-described processingis executed; if YES in step S7, the process advances to step S8 andshifts to a print processing mode.

If the type of a printer is not identified, e.g., an unknown printer IDis received, then a predetermined type of the printer may be set or auser can manually set the type. This can prevent there from beingnon-operability by an error.

In FIG. 8, if the PD printer 1000 detects connection with the digitalcamera 3012, the PD printer 1000 transmits to the digital camera 3012 arequest defined by the USB bus and various requests according to theembodiment. The camera 3012 sends back a “response” to the requests,thereby executing signal exchange, as shown in FIG. 8.

FIG. 9 depicts a view for explaining an operation of the digital camera3012 when the digital camera 3012 and PD printer 1000 according to theembodiment are connected via the cable 5000.

FIG. 9 shows the back surface of the digital camera 3012. Referencenumeral 90 denotes a playback button which designates to play back animage which has been sensed and stored; numeral 91 denotes a liquidcrystal display which displays an image, menu, and the like; numeral 92denotes a print menu; and numeral 93 denotes a viewfinder. Designationof a print image in the digital camera 3012 is basically the same as anoperation of creating a DPOF file when developing (printing) of sensedimages is ordered for a Photo print shop. More specifically, printing ofimages can be ordered by pressing the playback button 90 and designatingprinting of recorded images one by one or whole of recorded images. Whenthe digital camera 3012 is connected to the PD printer 1000, the printmenu 92 is displayed on the liquid crystal display 91, and imageselection and printing designation are done by using the menu. Byselecting the print menu 92, a printing paper size, color/monochromeprinting, the type of paper (plain paper, fine paper, or the like) usedfor printing, unframed/framed printing and the like, can be designated.Also, index printing, date printing, trimming printing, layout printingand the like can be designated.

FIG. 10 is a block diagram showing a typical arrangement of the DSC 3012according to the embodiment of the present invention. Some digitalcameras connectable to the PD printer 1000 of the embodiment may nothave any display 91 to be described later.

In FIG. 10, reference numeral 3100 denotes a CPU which controls theoverall DSC; numeral 3101 denotes a ROM which stores a program fordescribing a processing procedures implemented by the CPU 3100; numeral3102 denotes a RAM used as the work area of the CPU 3100; and numeral3103 denotes switches for various operations that include variousswitches including the above-described switches, cursor keys, and thelike. The liquid crystal display 91 is used to confirm a sensed imageand display menus for various settings. Reference numeral 3105 denotesan optical unit mainly constituted by a lens and its driving system;numeral 3106 denotes a CCD element; numeral 3107 denotes a driver whichdrives and controls the optical unit 3105 under the control of the CPU3100; numeral 3108 denotes a connector for connecting a storage medium3109 (compact flash® memory card, smart medium, or the like); and 3110,a USB interface (USB slave side) for connecting a PC or the PD printer1000 of the embodiment.

This embodiment will mainly exemplify printing performed by connectingthe PD printer 1000 and DSC 3012 described above. The purpose of thisembodiment is to provide a PD printer apparatus capable of connecting adigital camera of each manufacturer and devices (DSPD: Digital StillPhotography Devices) such as a cell phone and memory device to an imageoutput apparatus such as the PD printer 1000, and printing an imagebased on image data acquired from the connected device.

FIG. 11 is a flow chart showing processing in the camera 3012 activatedby a designation of the start of printing by the digital camera 3012. Aprogram which executes this processing is stored in the ROM 3101. FIG.12 depicts a view for explaining protocols when the PD printer 1000performs a print processing in accordance with a print instruction fromthe digital camera 3012. While the digital camera 3012 and PD printer1000 are connected, an operation on the operation panel 1010 of the PDprinter 1000 becomes invalid, and an operation with the operation button3013 of the digital camera 3012 becomes valid. The user operates thebutton of the camera 3012 to select images to be printed, and designatesto print the selected images. Then, a print request is issued from thecamera 3012 to the PD printer 1000, thereby the printer 1000 prints theimages.

In step S11, it is checked whether a print instruction has been input bymanipulating the operation button 3013 of the digital camera 3012. IfYES in step S11, the process advances to step S12 and the type ofconnected printer is determined. This determination is achieved based ona printer ID set in step S6 in the flow chart of FIG. 7. If the type ofthe printer is not determined based on the printer ID, a user may setthe type. If the PD printer 1000 according to the embodiment has beenconnected to the camera 3012, the process advances to step S13,information about an image file to be printed is set in a PrintRequestparameter, and the PrintRequest is transmitted to the printer 1000 (900in FIG. 12). Then a file request command (Open/Close/Read/SeekFile) isreceived from the PD printer 1000 (901 in FIG. 12) (step S15). Inresponse to this, the image file to be printed is sent to the printer1000 (step S 16). If the image file to be printed is a JPEG file, theJPEG file is transmitted without decoding any JPEG code. This is becausethe PD printer 1000 according to the embodiment comprises the JPEGdecoding function and an image processing function, as described above.The process advances to step S17, and upon reception of EndPrint fromthe PD printer 1000, it is checked whether all image files have beentransmitted. If NO in step S17, the process returns to step S13 and theabove-mentioned processing is repeated; if YES, advances to step S18 anda command (PrintRequest (NULL)) in which all PrintRequest parameters areset to “0” (903 in FIG. 12), is transmitted to the PD printer 1000.After that, a sign representing “during printing” of the digital camera3012 is disappeared, and the print mode is terminated. In step S19, itwaits until it receives EndPrint representing the end of printprocessing from the PD printer 1000 (904 in FIG. 12). After that, thedigital camera 3012 terminates the print processing. Because of normalprint processing, the PD printer 1000 prints image data transmitted inresponse to a file request command (Open/Close/Read/SeekFile) every timethe PD printer 1000 receives the image data. Even if the PD printer 1000receives a finally transmitted command (PrintRequest (NULL)) in whichall parameters are set to “0”, the printer 1000 does not start printing.

If the type of connected printer is determined in step S12 to be oneother than the PD printer 1000 according to the embodiment, e.g., to bean apparatus having no JPEG code decoding function, color conversionprocessing function, or the like, the process proceeds to step S20. Thedigital camera 3012 decodes a stored JPEG file, changes the image sizeto a paper size used for printing, and executes sharpness/colorconversion and the like. In step S21, the digital camera 3012 hasconverted the image file into bitmap image data as print image data, andtransmits the bitmap image data to the printer apparatus.

In this embodiment, after the process advanced to step S20, the digitalcamera 3012 has completed decoding, change of the image size,sharpness/color conversion and the like to generate bitmap image data asprint data, until the digital camera 3012 detects a timing at which theconnected printer apparatus has prepared for predetermined printing andthe image data to be printed is transmitted. This shortens the totalprint processing time. Detection of the timing at which the image datais transmitted is based on reception of an instruction from theconnected printer.

In this manner, the digital camera 3012 according to the embodimentchecks the type of connected printer when the start of printing isdesignated. In correspondence with the type of the connected printer,the digital camera 3012 determines whether an image file to betransmitted to the printer is kept JPEG-encoded or a bit-map image dataobtained by decoding the JPEG code of the image file. In this way, thedigital camera 3012 can transmit the image data (print data)corresponding to the type of the connected printer.

FIG. 13 is a flow chart for explaining the count display of the numberof prints in the digital camera 3012.

In step S31, both a variable (current) representing a counted number ofimages and a variable (page) representing a counted number of prints areset to “1”, and the maximum number of images to be printed on one sheetis set in a variable (total). These variables are stored in the RAM 3102of the camera 3012. The process advances to step S32 and it is checkedwhether the variable (current) value is equal to or larger than thevariable (total) value. If YES in step S32, the process proceeds to stepS33, the variable (current) is initialized to “0”, and the number (page)of prints is incremented by one, and the result is displayed on theliquid crystal display 91 of the digital camera 3012. If NO in step S32,the process proceeds to step S34 and it waits until EndPrintrepresenting the end of printing one image is received from the printerapparatus. Upon reception of EndPrint, the process advances to step S35and it is checked whether all target image data have been printed. If NOin step S35, the process proceeds to step S36, the variable (current)count value representing a counted number of images is incremented byone, and the process returns to step S32.

If the number of sheets is counted up and displayed every time one imageis printed upon printing a plurality of images on one sheet, like indexprinting or layout printing to be described later, the number of printedimages does not coincide with the number of printed sheets. To preventthis, the number (page) of printed sheets is incremented by one when thevariable (current) value (number of printed images) reaches the number(total) of images to be printed on one sheet. This makes that the numberof printed images and the number of printed sheets become correct.

In this way, the digital camera 3012 as an imaging apparatus issues aprint instruction, transfers an image file to be printed to the PDprinter 1000 in response to a request from the PD printer 1000, andreceives EndPrint from the PD printer 1000 after the completion of theprinting. The digital camera 3012 can display the number of printedimages on the liquid crystal display 91, on the basis of reception ofEndPrint and the number of images to be printed on one sheet.

To print one image on one sheet, the PD printer 1000 sends an image filerequest corresponding to one image to the digital camera 3012. Inresponse to this request, the digital camera 3012 transmits acorresponding image file to the PD printer 1000. The PD printer 1000sends EndPrint to the digital camera 3012, after the completion ofprinting based on the transferred image file. In this case, the numberof printed images is counted and displayed every time EndPrint isreceived. If the total number of images to be printed is obtained inadvance by one print instruction, the total number of images and thenumber of printed images are displayed, providing a high-conveniencearrangement for an operator of the digital camera 3012.

In the above example, the number of printed images is displayed. Theorder of an image being printed can also be displayed by subtracting avalue “1” from the number of printed images. Further, the remainingnumber of images can be displayed by subtracting the number of printedimages from the total number of images to be printed.

Print processing in the PD printer 1000 according to the embodiment willbe explained.

FIG. 14 is a flow chart showing normal print processing (not includingany index, layout, or date printing) of printing image data from thecamera 3012 in the PD printer 1000 according to the embodiment. Exchangeof signals between the PD printer 1000 and the digital camera 3012 inthis case is the same as that shown in FIG. 12.

In step S41, it waits until PrintRequest (print request) 900 is receivedfrom the digital camera 3012. Upon reception of PrintRequest, theprocess proceeds to step S42 and it is checked whether all theparameters contained in PrintRequest are “0”. If NO in step S42, theprocess advances to step S43 because PrintRequest is a print modedesignation command. In step S43, it is checked whether index printingis designated. If YES in step S43, the process advances to step S44 andan index print processing is executed. This processing will be describedlater with reference to the flow chart of FIG. 17. Parameters set inPrintRequest contain paper type determination codes (including a paperdesignation code, the presence/absence of the next image, indexprinting, the presence/absence of trimming, the presence/absence of thedate, the presence/absence of unframed printing, and the like), the sizeof a designated file, and the file name.

If NO in step S43, the process proceeds to step S45 and it is checkedwhether layout printing is designated. If YES in step S45, the processadvances to step S46 and a layout printing to be described later withreference to FIG. 19 is implemented. If neither the index printing northe layout printing is designated, the process advances to step S47, anda normal print processing of receiving and printing an image file isimplemented. The normal print processing will also be described indetail later with reference to the flow chart of FIG. 15.

If all the PrintRequest parameters are “0” (print request) (PrintRequest(NULL)) in step S42, the process advances to step S48 and it is checkedwhether a print mode for image data from the digital camera 3012 isdesignated. If YES in step S48, the process advances to step S49 and itis checked whether the print data which has not been printed yet exists.If YES in step S49, the process advances to step S50, the unprinted datais printed. If NO in step S49 or the print processing in step S50 isterminated, the process advances to step S51 and EndPrint representingthe end of printing is transmitted to the digital camera 3012. After theprocesses in steps S44, S46, S47, and S51, the process returns to stepS41 again and it waits for the next print request from the digitalcamera 3012.

[Normal Printing]

Normal print processing in step S47 of FIG. 14 will be explained withreference to the flow chart of FIG. 15 and the sequence chart of FIG.16.

In FIG. 15, if the PD printer 1000 receives PrintRequest from the camera3012 in step S61 (1500 in FIG. 16), it is checked whether a normal printmode other than index printing or layout printing is designated. If NOin step S61, the process ends. If YES in step S61, the process proceedsto step S62 and it is checked whether trimming and/or date printing isdesignated. If NO in step S62, the process advances to step S64; if YES,the process advances to step S63, GetAdditionalParam (1501) istransmitted to the digital camera 3012, and a trimming position and/ordate data is obtained from the camera 3012. In step S64 and subsequentsteps, the PD printer 1000 executes print processing.

In step S65, the structure of an image file to be printed is obtained.The process advances to step S66 and the print file name is obtained andan Open/Close/Read/SeekFile command is transmitted to the digital camera3012 (1502 in FIG. 16). In step S67, the file data from the camera 3012is acquired, and decoding, change of the size, color conversion and thelike are performed. The process advances to step S68, and the developedprint data in a layout designated by the camera 3012 is obtained. Theprocess advances to step S69 and it is checked whether all image filesto be printed have been acquired. If NO in step S69, the process returnsto step S65 and the above-described processing is executed. If YES instep S69, EndPrint is transmitted to the digital camera 3012 (1503).Thereafter, it is checked whether a print start instruction(PrintRequest (Null)) (1504 in FIG. 16) is received from the digitalcamera 3012. If PrintRequest has been received, the process advances tostep S70, image data is developed into print data, and the print data issupplied to the printer engine 3004, and then print processing isexecuted. In the print processing, the printer engine 3004 prints animage on a sheet on the basis of the received print data, and dischargesthe printed sheet. After printing ends, the process proceeds to stepS71, EndPrint is transmitted to the camera 3012 (1505 in FIG. 16), andthe processing is terminated.

FIG. 16 depicts an exchange of data between the PD printer 1000 and thedigital camera 3012 when trimming/date printing is performed uponprinting an image.

If the first PrintRequest parameter (1500) designates trimming/dateprinting or the like, the PD printer 1000 transmits GetAdditionalParam(1501) to the digital camera 3012, and requests detailed data. Aresponse to GetAdditionalParam from the digital camera 3012 contains theorigin coordinates (x,y) of the trimming range, the trimming range(horizontal width Δx and vertical width Δy), and a character stringrepresenting the date. In response to an Open/Close/Read/SeekFilecommand (1502) from the PD printer 1000, the camera 3012 reads outcorresponding image file, and transmits it as a JPEG code to the printer1000.

[Index Printing]

FIG. 17 is a flow chart showing index printing in the PD printer 1000according to the embodiment. Index print processing is to print as athumbnail image the index of an image stored in the digital camera 3012.FIG. 18 depicts a protocol view for explaining exchange of signals inexecuting index print processing.

In step S81, the PD printer 1000 receives PrintRequest from the digitalcamera 3012 (1700 in FIG. 18), and checks whether this PrintRequest isthe first PrintRequest designating index printing. If YES in step S81,the process advances to step S82 and an index print mode is set. Theprocess then proceeds to step S83, the number of indices printable on asheet subjected to printing is obtained, and the number of indices istransmitted to the digital camera 3012. This corresponds to transmissionof SetIndexNum in 1701 of FIG. 19. In step S84, it is checked whetherindex data based on PrintRequest has been received from the digitalcamera 3012. If YES in step S84, the process proceeds to step S85 andthe number of indices is incremented by one. The process advances tostep S86 and it is checked whether the number of received indices hasreached the number of indices printable on one sheet. If NO in step S86,the process returns to step S84 and the above-described processing isrepeated.

If YES in step S86, PrintRequest (NULL) (all parameters are 0) isreceived from the digital camera 3012 (1702). The process then advancesto step S87 and print processing is implemented as in step S64 andsubsequent steps in the flow chart of FIG. 15. In this case,Open/Close/Read/SeekFile from the printer 1000 designates the address ofa JPEG code where the index data of the image file is stored. The imagefile is read out from the designated address in the digital camera 3012and transmitted to the printer 1000. Index printing can, therefore, beeasily performed. After printing on one sheet ends, the process advancesto step S88 and all printed index data are erased. The process advancesto step S89, and EndPrint is transmitted to the digital camera 3012,thereby the printer 1000 notifies the digital camera 3012 of the end ofindex printing on one sheet. The process advances to step S90 and it ischecked whether print processing of all indices has ended. If NO in stepS90, the process returns to step S81.

If the PrintRequest parameter does not designate index printing in stepS84, the process proceeds to step S91 and it is checked whether thePrintRequest is PrintRequest (NULL) in which all parameters are “0”. IfYES in step S91, this PrintRequest is a print instruction from thedigital camera 3012. The process advances to step S87 and printprocessing is executed as in step 64 and subsequent steps in the flowchart of FIG. 15. This print instruction designates the re-start ofindex printing when the number of indices has not reached the maximumnumber of indices printable on one sheet. If NO in step S91, the processadvances to step S89 and the printer 1000 responds to the camera 3012 byEndPrint.

[Layout Printing]

FIG. 19 is a flow chart showing a layout print processing in the PDprinter 1000 according to the embodiment. The layout print processing isto lay out on one sheet a plurality of images stored in the camera 3012and print the images.

In step S101, the PD printer 1000 receives PrintRequest designatinglayout printing from the digital camera 3012, and it is checked whetherthis PrintRequest is the first PrintRequest. If YES in step S101, theprocess advances to step S102 and a layout print mode is set. Theprocess advances to step S104 and it is checked whether trimming and/ordate printing is designated. If NO in step S104, the process advances tostep S106; if YES, the process advances to step S105 and trimming and/ordate data is obtained. This is achieved by GetAdditionalParam in 1501 ofFIG. 16.

The process then advances to step S106 and image data is saved. Theprocess advances to step S107 and it is checked whether all image datato be printed on one sheet have been saved. If YES in step S107, theprocess advances to step S108 and print processing is executed as instep S64 and subsequent steps in the flow chart of FIG. 15. After layoutprinting on one sheet ends, the process proceeds to step S109 andprinted image data is cleared. The process advances to step S110, andEndPrint is transmitted to the digital camera 3012, thereby the printer1000 notifies the camera 3012 of the end of layout printing on onesheet. The process advances to step S111 and it is checked whetherlayout print processing has ended. If NO in step S111, the processreturns to step S101.

If the mode is the same as the first layout print mode in step S103, theprocess advances to step S104 and the above-described processing isexecuted. If NO in step S103, the PD printer 1000 ends print processing.

If NO in step S107, the process advances to step S112 and it is checkedwhether the PrintRequest is PrintRequest (NULL) (print request) in whichall parameters are “0”. If YES in step S112, this PrintRequest is aprint instruction from the camera 3012. The process proceeds to stepS108 and the above-described print processing is executed. This printinstruction designates the start of printing when the number of laid outimages has not reached the maximum number of images to be laid out onone sheet. If NO in step S112, the process proceeds to step S110 and theprinter 1000 responds to the digital camera 3012 by EndPrint.

[Printer Error Processing]

FIG. 20 is a flow chart showing processing when an error occurs in thePD printer 1000 according to the embodiment. FIG. 21 is a sequence chartfor explaining exchange of signals in this case.

In step S121, if any error occurs in the printer 1000, the printer 1000transmits, to the camera 3012, PrintDisable representing printing cannotbe continued (1900 in FIG. 21). This PrintDisable notifies the digitalcamera 3012 of the type of generated error. The flow advances to stepS122 to check whether a print stop/restart instruction has been issued.If NO in step S122, the process advances to step S123 to check whetherthe error in the printer 1000 has been canceled. If YES in step S123,the process advances to step S124 to notify the camera 3012 of thecancellation of the error (1901 in FIG. 21). Then, the process advancesto step S125 to check whether another error has occurred. If YES in stepS125, the process returns to step S121; if all errors have beencanceled, the process advances to step S126 to continuously execute thecurrent print processing.

If the restart/stop of printing is designated by the camera 3012 in stepS122, the process advances to step S127. For a print restartinstruction, the process advances to step S124 to notify the digitalcamera 3012 of the cancellation of the error. If the stop of printing isdesignated in step S127, the process advances to step S128 to abortprint processing and notify the camera 3012 of the cancellation of theerror.

FIG. 22 depicts a sequence chart showing processing when the digitalcamera 3012 issues a forced print termination instruction during printprocessing in the PD printer 1000 according to the embodiment.

If the forced termination of print processing is designated by a forcedtermination instruction (PinrtAbort) input from the digital camera 3012during print processing 2111, the printer 1000 aborts print processingin progress and transmits PrintDisable to the digital camera 3012(2112). Upon reception of a response to PrintDisable from the digitalcamera 3012, the printer 1000 completely cancels print operation, andtransmits, to the digital camera 3012, PrintEnable representing thepossibility of accepting the next print instruction.

FIG. 23 depicts a sequence chart for explaining exchange of signals whenprint processing aborts due to generation of an error in the PD printer1000 according to the embodiment and restarts in accordance with aninstruction from the digital camera 3012.

If any error occurs in the printer 1000 during print processing 2211,the PD printer 1000 aborts print processing in progress and transmitsPrintDisable to the digital camera 3012 (2212). The display on thedisplay 91 of the camera 3012 changes from “during printing” to “error”.If the user determines that the error does not inhibit the continuationof printing, he/she designates “restart of printing” using the operationbutton 3103 of the digital camera 3012. The digital camera 3012transmits PrintRequest to the printer 1000 (2213). Upon reception of theprint request signal, the printer 1000 transmits PrintEnablerepresenting that printing is possible (2214). The PD printer 1000issues a print file request, and the digital camera 3012 sends backimage data in response to the request, thus restarting print processing2215.

The present invention may be applied to a system constituted by aplurality of devices (e.g., a host computer, interface device, reader,and printer) or an apparatus (e.g., a copying machine or facsimileapparatus) formed from a single device.

The object of the present invention is also achieved when a storagemedium (or recording medium) which stores software program codes forrealizing the functions (processes performed on the camera side andvarious print processes performed on the printer side) of theabove-described embodiment is supplied to a system or apparatus, and thecomputer (or the CPU or MPU) of the system or apparatus reads out andexecutes the program codes stored in the storage medium. In this case,the program codes read out from the storage medium realize the functionsof the above-described embodiment, and the storage medium which storesthe program codes constitutes the present invention. The functions ofthe above-described embodiment are realized when the computer executesthe readout program codes. Also, the functions of the above-describedembodiment are realized when an OS (Operating System) running on thecomputer performs part or all of actual processing on the basis of theinstructions of the program codes.

The functions of the above-described embodiment are also realized whenthe program codes read out from the storage medium are written in thememory of a function expansion card inserted into the computer or thememory of a function expansion unit connected to the computer, and theCPU of the function expansion card or function expansion unit performspart or all of actual processing on the basis of the instructions of theprogram codes.

As has been described above, according to the embodiment, a PD printerapparatus can be connected to a digital camera to receive image datafrom the digital camera and print the image data.

The digital camera according to the embodiment can determine inaccordance with the function of the connected printer apparatus whetherto output, to the printer apparatus, a JPEG code or decoded data as adata file structure. Data of the determined structure is transmitted tothe connected printer apparatus and printed.

The printer apparatus and digital camera according to the embodimentrequest the start of print operation using a command in which all theparameters of a print request command from the digital camera are set to“0”. This can simplify communication procedures between the printerapparatus and the digital camera.

In the number-of-prints count display, the number of printed sheets canbe accurately counted and displayed even in a mode in which a pluralityof images are printed on one sheet.

The embodiment has exemplified a digital camera as an imaging apparatus,but the present invention is not limited to this. For example, cellphones with an imaging function and a function of saving sensed imagedata have recently been known. Instead of the digital camera describedin the embodiment, such a cell phone can be connected via a connectioncable.

As a portable information terminal, PDAs (Personal Digital Assistances)having a liquid crystal monitor capable of displaying an image and amemory capable of saving a sensed image have recently been spread. Sucha PDA can be connected via a connection cable to print saved image data,similar to the digital camera in the embodiment.

The PD printer apparatus according to the embodiment can implement thefunctions of a PC printer, camera printer, and memory printer by oneprinter apparatus.

Other interfaces, e.g., wireless or using infrared ray such asBluetooth, IrDA and the like may be provided. In this case, the digitalcamera determines a type of the printer when a communication between thedigital camera and the printer has been established instead of when thecamera and the printer are connected.

The present invention is not limited to the above embodiments andvarious changes and modifications can be made within the spirit andscope of the present invention. Therefore, to apprise the public of thescope of the present invention, the following claims are made.

1. An imaging apparatus capable of outputting a sensed image to aprinting apparatus, comprising: determination means for determining atype of the printing apparatus connected via an interface; and changemeans for selecting a type of image data to be output to the printingapparatus among JPEG-encoded image data and bitmap image data, on thebasis of a result determined by said determination means, wherein in acase where the bitmap image data is selected, said change means developan image to be output into bitmap image data before an instruction,representing a timing at which the image is to be transferred, isreceived from the printing apparatus.
 2. The apparatus according toclaim 1, wherein said determination means determines the type of theprinting apparatus on the basis of identification information of theprinting apparatus sent from the printing apparatus.
 3. The apparatusaccording to claim 1, further comprising means for turning on a powersupply of the imaging apparatus when connection to the printingapparatus is detected.
 4. The apparatus according to claim 1, whereinthe apparatus further comprises display means for displaying a menu fora user interface, and when connection to the printing apparatus isdetected, said display means additionally displays a user interface menuconcerning image output processing to the printing apparatus.
 5. Theapparatus according to claim 1, wherein the printing apparatus includesa printer device.
 6. The apparatus according to claim 1, wherein saidchange means selects and outputs JPEG-encoded image data to apredetermined printing apparatus.
 7. The apparatus according to claim 1,wherein the imaging apparatus further comprises a memory which stores acompressed image.
 8. A control method in an imaging apparatus capable ofoutputting a sensed image to a printing apparatus, comprising: adetermination step of determining a type of the printing apparatusconnected via an interface; and a change step of selecting a format ofimage data to be output to the printing apparatus among JPEG-encodedimage data and bitmap image data, on the basis of a result determined insaid determination step, wherein in a case where the bitmap image datais selected, said change step develop an image to be output into bitmapimage data before an instruction, representing a timing at which theimage is to be transferred, is received from the printing apparatus. 9.The method according to claim 8, wherein in said determination step, thetype of the printing apparatus is determined on the basis ofidentification information of the printing apparatus sent from theprinting apparatus.
 10. The method according to claim 8, furthercomprising the step of turning on a power supply of the imagingapparatus when connection to the printing apparatus is detected.
 11. Themethod according to claim 8, wherein the method further comprises thedisplay step of displaying a menu for a user interface, and whenconnection to the printing apparatus is detected, a user interface menuconcerning image output processing to the printing apparatus isadditionally displayed in the display step.
 12. The method according toclaim 8, wherein the printing apparatus includes a printer device. 13.The method according to claim 8, wherein the imaging apparatus comprisesa memory which stores a compressed image.
 14. A system having an imagingapparatus for outputting a sensed image, and a printing apparatusconnected to the imaging apparatus via an interface, the imagingapparatus comprising: determination means for determining a type of theprinting apparatus connected via the interface; and change means forselecting a type of image data to be output to the printing apparatusamong JPEG-encoded image data and bitmap image data, on the basis of thetype of the printing apparatus determined by said determination means,wherein in a case where the bitmap image data is selected, said changemeans develop an image to be output into bitmap image data before aninstruction, representing a timing at which the image is to betransferred, is received from the printing apparatus, and transmissionmeans for transmitting the JPEG-encoded image data or the bitmap imagedata to the printing apparatus on the basis of the type of image dataselected by said change means.
 15. The system according to claim 14,wherein the imaging apparatus further comprises means for turning on apower supply of the imaging apparatus when connection to the printingapparatus is detected.
 16. The system according to claim 14, wherein theimaging apparatus further comprises display means for displaying a menufor a user interface, and when connection to the printing apparatus isdetected, said display means additionally displays a user interface menuconcerning image output processing to the printing apparatus.
 17. Acomputer-readable storage medium which stores a program which executesthe control method defined in claim
 8. 18. A program which executes thecontrol method defined in claim 8.